<template>
  <div class="dog">
    <button @click="getUrl">再来一条狗</button>
    <img v-for="(dog,index) in dogList" :src="dog" :key="index"/>
  </div>
</template>

<script lang="ts" setup name="axiosDemo">
  import useDog from '@/hooks/useDog.ts'
  const {dogList,getUrl} = useDog()
</script>

<style scoped>
.dog{
  width: 100px;
  margin: 10px;
}
</style>